package com.ly.noweb.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * node测试实体
 *
 * @author luoyun
 * @Date: 2025/5/15 15:54
 * @Note:
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Nodee {
    private String id;
    private String name;
    private String parentId; // 父节点ID
    private List<Nodee> children = new ArrayList<>(); // 子节点集合

    // 构造方法
    public Nodee(String id, String name, String parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }
}
